package utils

import (
	"api-getway/internal/handler"
	jwts "github.com/winksai/jwt/jwt"
)

func ParseToken(token string) *jwts.CustomClaims {
	newJWT := jwts.NewJWT(handler.SecretKey)
	parseToken, err := newJWT.ParseToken(token)
	if err != nil {
		return nil
	}
	return parseToken
}
